package org.com.money.controller;

import java.util.HashMap;
import java.util.Map;

import javax.swing.JFrame;

import org.com.money.service.MoneyException;

public class Context extends JFrame {

	private Map<String, Object> data = new HashMap<String, Object>();

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void putData(String key, String value) throws MoneyException {
		this.data.put(key, value);
	}

	public Object getDataByKey(final String key) {
		return this.data.get(key);
	}
}
